#include"stack.h"
#include"queue.h"
int main()
{
	/*ST ps;
	STackInit(&ps);
	STackpush(&ps,1);
	STackpush(&ps, 5);
	STackpush(&ps, 4);
	STackpush(&ps, 3);
	STackpush(&ps, 2);
	while (!STackEmpty(&ps))
	{
		printf("%d ", STackTop(&ps));
		STackpop(&ps);
	}


	STackDestory(&ps);
	return 0;*/
	Queue q;
	 QueueInit(&q);
	 Queuepush(&q, 2);
	 Queuepush(&q, 3);
	 Queuepush(&q, 8);
	 Queuepush(&q, 7);
	 Queuepush(&q, 9);
	 while (!Queueempty(&q))
	 {
		 printf("%d ", Queuefront(&q));
		 Queuepop(&q);
	 }





	 Queuedestory(&q);

}